/*
 * @Author: Setsuna
 * @Email: 601890383@qq.com
 * @FilePath: \src\apis\CustomerManage\index.ts
 * @Date: 2021-07-09 11:25:54
 * @LastEditTime: 2023-01-13 17:15:18
 */
export default {
  // 客户管理
  // 经销商列表
  CustomerList: '/api/v1/user/customers',
  // 分销商与终端列表
  getCustomerPage: '/api/v1/user/customers/getCustomerPage',
  //终端-查询奖品列表
  getPrizeList: '/api/v1/user/customers/getPrize',
  //经销商-查询下级客户列表
  getDealerLowerLevel: 'api/v1/user/customers/getDealerLowerLevel',
  //分销商/终端-查询下级客户列表
  getLowerLevelList: '/api/v1/user/customers/getLowerLevel',
  //分销商/终端-查询所售产品及供应商
  getSupplierList: '/api/v1/user/customers/getSupplier',
  //分销商/终端-查询客户明细
  getContactsList: '/api/v1/user/customers/getContacts',
  //经销商查询客户明细
  getDealerList: '/api/v1/user/customers/queryAgentContacts',
  // 所属品牌公司
  BelongBrandCompany: '/api/v1/user/agent/brand/agentCode',
  // 片区详情
  areaDetails: '/api/v1/user/agent/brand/agentCode/area',
  //经销产品及区域
  // getOperatingMainPage: "/api/v1/user/customers/getOperatingMainPage",
  getOperatingMainPage: "/api/v1/user/customers/getOperatingMainPage",
  // 产品和区域
  CustomerProductsRegions: '/api/v1/user/customers/products',
  // 下级
  CustomerUnder: '/api/v1/user/customers/kids',
  // 下级终端
  TerminalsUnder: '/api/v1/user/customers/terminals',
  // 头部经销商数据
  ListNumber: '/api/v1/user/customers/counts',

  /* 入驻资质 */
  // 列表
  SettledList: '/api/v1/user/qualify/manage',
  // 详情
  SettledDetail: '/api/v1/user/qualify/manage/detail',
  // 审批
  SettledReview: '',
  // 操作日志
  SettledLogs: '/api/v1/user/qualify/manage/history',

  /**
   * 销售区域以及产品
   */
  //列表
  getAreaAndProduct: '/api/v1/user/salesdomainandproducts',
  //移除
  remove: '/api/v1/user/salesdomainandproducts',
  //修改
  update: '/api/v1/user/salesdomainandproducts',
  //新增
  add: '/api/v1/user/salesdomainandproducts',
  //导出
  AreaAndProductDown: '/api/v1/user/salesdomainandproducts/down',
  //模版下载
  template: '/api/v1/user/salesdomainandproducts/template',
  //导入
  AreaAndProductImport: '/api/v1/user/salesdomainandproducts/export',
  //省
  province: '/api/v1/user/administrative-area/province',
  //市
  city: '/api/v1/user/administrative-area/city',
  //区
  distrcit: '/api/v1/user/administrative-area/distrcit',
  //物料
  product: '/api/v1/stock/material-info/mat-tree-code-name',
  //更改状态
  changeAuth: '/api/v1/user/customers/update/list',
  //导出客户列表
  exportCustomersTable: '/api/v1/user/customers/downloadCustomerExcel',

  //客户等级权益列表
  getRightsDetailList: '/api/v1/user/rightsregisterdetail/getRightsDetailList',
  //客户等级权益详情
  getRightsdetail: '/api/v1/user/rightsregisterdetail/rightsdetailbyid',
  //客户等级权益编辑
  updateRightsDetail: '/api/v1/user/rightsregisterdetail/updateRightsDetail',
  //客户等级权益导出
  exportTableData: '/api/v1/user/rightsregisterdetail/downloadRighterDetailExce',
  //客户等级权益模板下载
  downTemplate: '/api/v1/user/excelDownload/rank/Template',
  //客户等级权益导入
  importExcel: '/api/v1/user/excelDownload/appCustomerRankImport',
  //客户等级权益调整记录列表接口
  getAdjustmentRecordList: '/api/v1/user/registeradjust/getRegisterAdjustList',
  //客户等级权益导入记录列表接口
  getImportRecordList: '/api/v1/user/registerExcel/getPageRightsExcelList',
  //客户等级权益调整记录详情接口
  getAdjustmentRecordDetail: '/api/v1/user/registeradjust/getRegisterAdjustDetail',
  //客户等级权益导入记录详情接口
  getImportRecordDetail: '/api/v1/user/registerExcel/queryRightsExcelById',
  //客户等级权益调整记录导出
  downAdjustmentRecordList: '/api/v1/user/registeradjust/downRegisterAdjustList',
  //获取权益项
  getRightsRegisterDict: '/api/v1/user/registerExcel/getRightsRegisterDict',
  //利润统计列表接口
  getProfitReportingCount: '/api/v1/user/profitReporting/profitReportingCount',
  //利润统计列表导出
  downProfitReportingCountExcel: '/api/v1/user/profitReporting/downProfitReportingCountExcel',
  //利润统计修改接口
  updateProfitReporting: '/api/v1/user/profitReporting/updateProfitReporting',

  /**新增经销商  同步给终端 */
  pushUpdateDealerZd: '/api/v2/quota/jxsxcx/operatingItems/pushUpdateDealerZd',

  /** 获取经营品项详情 */
  getOperatingById: '/api/v2/quota/operatingMain/getOperatingById',
  /**经营品项列表接口 */
  getOperatingPage: '/api/v2/quota/operatingMain/getOperatingPage',
  /**经营品项重发 */
  operatingRetry: '/api/v2/quota/mgmt/quotaManage/quotaRetry',

  /**奖品历史记录 */
  getPrizeWipedRecordPage: '/api/v2/quota/mgmt/prizeWipedRecord/getPrizeWipedRecordPage',
  /**奖品列表 */
  getPrizeInfoPage: '/api/v2/quota/mgmt/prizeInfo/getPrizeInfoPage',
  /**新增/修改  奖品兑付 */
  saveOrUpdatePrize: '/api/v2/quota/mgmt/prizeWipedRecord/saveOrUpdatePrize',
  /**删除奖品兑付 */
  deletePrize: '/api/v2/quota/mgmt/prizeWipedRecord/deletePrize',
  /**根据id查询奖品兑付详情 */
  getPrizeWipedRecordById: '/api/v2/quota/mgmt/prizeWipedRecord/getPrizeWipedRecordById',
  /** 奖品兑付导出*/
  downloadPrizeWipedRecordExcel: '/api/v2/quota/mgmt/prizeWipedRecord/downloadPrizeWipedRecordExcel',

  /** 客户申请查询*/
  getCustomerApplication: '/api/v1/quota/wchat/agent/process/querMgmtPage',
  /** 客户申请重发 */
  retransmission: '/api/v1/quota/wchat/agent/process/retry',
  /** 客户申请详情 */
  getProcessDetail: '/api/v1/quota/wchat/agent/process/todoDetail',
}
